import { userStore } from '@/store/user'
import { createPinia } from 'pinia'
import { createPersistedState } from 'pinia-plugin-persistedstate'

const pinia = createPinia()

pinia.use(createPersistedState({
	storage: window.sessionStorage
}))


function useStore() {
	return {
		userStore: userStore()
	}
}

export { pinia }
export default useStore
